package net.lgy.apitest.model.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 测试环境配置数据对象类（数据库表映射）
 */
@TableName("test_environment")
public class TestEnvironmentDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 环境名称(如：开发环境、测试环境、生产环境)
     */
    private String name;

    /**
     * 基础URL
     */
    private String baseUrl;

    /**
     * 环境描述
     */
    private String description;

    /**
     * 是否为默认环境
     */
    private Boolean defaultEnv;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    
    /**
     * 用户账号ID
     */
    private Long accountNo;
    
    // getter方法
    public Long getId() {
        return id;
    }
    
    public String getName() {
        return name;
    }
    
    public String getBaseUrl() {
        return baseUrl;
    }
    
    public String getDescription() {
        return description;
    }
    
    public Boolean getDefaultEnv() {
        return defaultEnv;
    }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    
    public Long getAccountNo() {
        return accountNo;
    }
    
    // setter方法
    public void setId(Long id) {
        this.id = id;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public void setDefaultEnv(Boolean defaultEnv) {
        this.defaultEnv = defaultEnv;
    }
    
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    
    public void setAccountNo(Long accountNo) {
        this.accountNo = accountNo;
    }
}